\begin{appendices}
\chapter{Appendix - Application installation}
Requirements needed to run the applications are:
\begin{itemize}
	\item The NLP tool Treex - Appendix A contains the installation guide
	\item Running \emph{treexServiceServer} module where the Treex is deployed
	\item Virtuoso database
	\item Application server such as Tomcat
\end{itemize}

\paragraph{Installation of Virtuoso database}
Installation guide for Windows: \url{http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSUsageWindows}
Installation guide for Ubuntu and Fedore: \url{http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSUbuntuNotes}

\paragraph{Installation of Application server}
Apache Tomcat has been used for the development purposes. Maven support were added for faster compiling and deployment of the application.
Installation guide can be found here: \url{http://tomcat.apache.org/tomcat-7.0-doc/setup.html}

\paragraph{Compiling and running treexServiceServer module}
This module allows application to invoke the NLP tool Treex. It uses RMI to receive text and pass back the result.
It uses default port 1099, to change that please change the property \emph{registryPort} in \emph{spring-config-server.xml} configuration file.
\begin{itemize}
	\item Compilation - \emph{mvn clean install}
	\item Creating package - \emph{mvn assembly:single}
	\item Installation - Go to target, unpack the \emph{treexServiceServer-0.0.1-SNAPSHOT-distro-0.0.1-SNAPSHOT.zip} file
	\item Running - Go to the unpacked folder, move \emph{treexServiceServer-0.0.1-SNAPSHOT.jar} from target to the up one level. and run this Jar file
\end{itemize}

\paragraph{Compiling and deploying application}
To compile and run the application, several steps has to be made:
\begin{itemize}
	\item Setup database properties - Got to the folder \url{/dbVirtuoso/src/main/resources} and set up database connection url, user and password in the \emph{config.properties} file
	\item Treex service - Go to the folder \url{/invokeLinguisticProcessing/src/main/resources} and set up the connection with the Treex service in \emph{spring-config-client.xml} file
	\item Tomcat and maven configuration - Please configure in module \emph{semjoKB} folder the file \emph{pom.xml} configuration for the tomcat server as url, server, user, password
	\item Install and deploy for tomcat - \emph{mvn clean install tomcat:redeploy -DskipTest}
	\item Run application - \url{http://TOMCATURL/semjobKB}
\end{itemize}
\end{appendices}